package one.stand.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import one.stand.aop.ApiController;
import one.stand.model.ResultModel;
import one.stand.request.CompanyCouponRequest;
import one.stand.request.UserCouponRequest;
import one.stand.response.CompanyCouponResponse;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author: QIK
 * @CreateDate: 2019/6/25 9:31
 */
@RestController
@RequestMapping("userApi/company/coupon")
@Api(description  = "企业优惠券")
public class CompanyCouponController extends BaseController {
    /**
     * 获取企业优惠券
     * @param request
     * @return
     */
    @ApiOperation(value = "获取企业优惠券列表")
    @ApiController(isLogin = true,paramClass = CompanyCouponRequest.class)
    @PostMapping("getCompanyCouponList")
    public ResultModel<List<CompanyCouponResponse>> getCompanyCouponList(@RequestAttribute CompanyCouponRequest request){
        return userFegin.getCompanyCouponList(request);
    }
}
